﻿@using sharp_net.Mvc;
@using Microsoft.Web.Mvc;
@using C = zkdao.Host.Controllers.AccountController;
@using RC = zkdao.Host.Controllers.RebateController;
@if (Request.IsAuthenticated) {
    <li class="dropdown">
        <a id="UserKey" href="#" class="dropdown-toggle" data-toggle="dropdown">
            @User.Identity.Name<b class="caret"></b>
        </a>
        <ul class="dropdown-menu">
            <li>@(Html.ActionLink<RC>(c => c.Submit(), "提交折扣信息"))</li>
            <li>@(Html.ActionLink<C>(c => c.Index(), "审核"))</li>
            <li>@(Html.ActionLink<C>(c => c.Index(), "账户设置"))</li>
            <li>@(Html.ActionLink<C>(c => c.LogOff(), "注销"))</li>
        </ul>
    </li>
} else {
    <li>@(Html.ActionLink<C>(c => c.LogOn(), "登录"))</li>
    <li>@(Html.ActionLinkWico<C>(c => c.Register(), "注册", "icon-user icon-white"))</li>
}